<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<!-- 模态提示是否投稿窗口 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" style="width:300px;height:100px;">
        <div class="modal-content">
          <div class="modal-body">
          	<img width="280px" height="100px" src="img/confsub.png">
          </div>
          <div class="modal-footer" style="height:50px;">
            <button data-dismiss="modal" class="btn btn-default btn-sm" type="button">关闭</button>
            <button id="btn-submit" class="btn btn-primary btn-sm" type="button">确认</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
</div>
<!-- 模态提示不能为空窗口 -->
<div class="modal fade" id="modalNotNull" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" style="width:300px;height:100px;">
        <div class="modal-content">
          <div class="modal-body">
          	<img width="280px" height="100px" src="img/notNull.png">
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
</div>

<!-- 模态提示投稿成功窗口 -->
<div class="modal fade" id="modalSubSuccess" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" style="width:170px;height:50px;">
        <div class="modal-content">
          <div class="modal-body">
          	<img width="140px" height="50px" src="img/subSuccess.png">
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
</div>

<script>
//弹窗自动消失
function alertModal(id){
    $('#'+id).modal('show');
    setTimeout(function(){
        $("#"+id).modal("hide");
    },1500);
}
function checkEmpty(id){
	var value = $("#"+id).val();
	if(value.length==0){
		return false;
	}
	return true;
}
</script>